package com.lixh.roommanager.ui

import android.app.Application
import android.content.Context
import com.github.salomonbrys.kotson.fromJson
import com.google.gson.Gson
import com.lixh.roommanager.ui.bean.Room
import com.lixh.roommanager.ui.utils.UStore
import org.joda.time.DateTime
import kotlin.properties.Delegates

/**
 * APPLICATION
 */
class BaseApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        instance = this
    }

    companion object {

        var instance: BaseApplication by Delegates.notNull()

        val appContext: Context
            get() = instance.applicationContext

    }
}
